<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>P77 【例4-4】demo04.html</title>
</head>

<body>
    <script>
        var a = 'one';
        function test() {
            var a = 'two';
            console.log(a);
        }
        test();
        for (let a = 0; a < 3; ++a) {
            console.log(a);
        }
        console.log(a);
    </script>
    <a href="../首页/page04.html">
        <h2>返回上一页面</h2>
    </a>
</body>

</html>